#include<stdio.h>
#include<string.h>

int main(int argc, char *argv[])
{
        int i = 0;
            char buff[100];

                memset(buff,0,sizeof(buff));

                    strncpy(buff, argv[0], sizeof(buff));
                        memset(argv[0],0,strlen(buff));

                            strncpy(argv[0], "NewName", 7);
                            printf("Process name: %s\n", argv[0]);

                                // Simulate a wait. Check the process
                                //     // name at this point.
                                         for(;i<0xffffffff;i++);
                                
                                             return 0;
                                             }
